package main.Q1601_1700;

public class Q1671_1680 {
    public static void main(String[] args) {
        System.out.println("Question1671：");
        System.out.println("Question1672：最富有客户的资产总量");
        System.out.println("Question1673：");
        System.out.println("Question1674：");
        System.out.println("Question1675：");
        System.out.println("Question1676：");
        System.out.println("Question1677：");
        System.out.println("Question1678：设计Goal解析器");
        System.out.println("Question1679：");
        System.out.println("Question1680：");
    }
}

class Question1672{
    public int maximumWealth(int[][] accounts) {
        int maxAsset=0,length=accounts.length;
        for (int[] account:accounts){
            int asset=0;
            for (int num:account) asset+=num;
            maxAsset=Math.max(maxAsset,asset);
        }
        return maxAsset;
    }
}

class Question1678{
    public String interpret(String command) {
        StringBuffer result=new StringBuffer();
        for (int i=0;i<command.length();){
            if (command.charAt(i)=='G') {
                result.append("G");
                i++;
            }
            else if (command.substring(i,i+2).equals("()")) {
                result.append("o");
                i+=2;
            }
            else if (command.substring(i,i+4).equals("(al)")) {
                result.append("al");
                i+=4;
            }
        }
        return result.toString();
    }
}